package com.dhcc.bpm.modules.metadata.service.impl;

import com.dhcc.bpm.modules.metadata.entity.ProdCode;
import com.dhcc.bpm.modules.metadata.vo.ProdCodeVO;
import com.dhcc.bpm.modules.metadata.mapper.ProdCodeMapper;
import com.dhcc.bpm.modules.metadata.service.IProdCodeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * 产品代码表 服务实现类
 *
 * @author []
 * @since 2020-06-10
 */
@Service("opc_prod_code")
public class ProdCodeServiceImpl extends ServiceImpl<ProdCodeMapper, ProdCode> implements IProdCodeService {

	@Override
	public IPage<ProdCodeVO> selectProdCodePage(IPage<ProdCodeVO> page, ProdCodeVO prodCode) {
		return page.setRecords(baseMapper.selectProdCodePage(page, prodCode));
	}
	
	@Override
	public List<ProdCode> getProdCode(String productName) {
	return baseMapper.getProdCode(productName);
	}
	
	
	/**
	 * 根据id查询信息
	 */
	@Override
	public List<ProdCode> getProdCodeName(String ids) {
	return baseMapper.getProdCodeName(ids);
}

	/**
	 * 查询信息集合
	 */
	@Override
	public List<ProdCode> getProdCodeList(ProdCode prodCode) {
	return baseMapper.getProdCodeList(prodCode);
}
}
